package com.shop.service;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.task.Comment;
import org.activiti.engine.task.Task;

import com.shop.pojo.Leavebill;

public interface WorkFlowService {

	void saveNewDeploy(InputStream in, String processName);

	void startProcess(Long leaveId, String name,Integer days);

	List<Task> findTaskListByName(String name,Long id);

	Leavebill findLeaveBillByTaskId(String taskId);

	List<Comment> findCommentListByTaskId(String taskId);
	
	public void submitTask(long id,String taskId,String comment,String username,String days);
	
	Map<String, Object> findCoordingByTask(String taskId);

	InputStream findImageInputStream(String deploymentId, String imageName);

	ProcessDefinition findProcessDefinitionByTaskId(String taskId);

	void giveUpTask(long id, String taskId);

	void rejectTask(long id, String taskId);

}
